﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;
public partial class TestConnection : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string strConnect = WebConfigurationManager.ConnectionStrings["LocalSqlServer"].ToString();
            SqlConnection connect = new SqlConnection(strConnect);            
            Response.Write("Successfull");
        }
        catch (SqlException)
        {
            Response.Write("Failure.");
        }
        
    }
}